// RendererTestView.h : interface of the CRendererTestView class
//


#pragma once

#include <renderer/renderer.h>

USING_NAMESPACE_OXGE

class CRendererTestView : public CView
{
protected: // create from serialization only
	CRendererTestView();
	DECLARE_DYNCREATE(CRendererTestView)

// Attributes
public:
	CRendererTestDoc* GetDocument() const;

// Operations
public:

// Overrides
public:
	virtual void OnDraw(CDC* pDC);  // overridden to draw this view
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
protected:
	virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
	virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
	virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);

// Implementation
public:
	virtual ~CRendererTestView();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:

	RenderDevice::RefPtr m_pRenderDevice;
	CClientDC* m_pCDC;

// Generated message map functions
protected:
	DECLARE_MESSAGE_MAP()
public:
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	afx_msg BOOL OnEraseBkgnd(CDC* pDC);
};

#ifndef _DEBUG  // debug version in RendererTestView.cpp
inline CRendererTestDoc* CRendererTestView::GetDocument() const
   { return reinterpret_cast<CRendererTestDoc*>(m_pDocument); }
#endif

